/*
 * GuudThread.h
 *
 *  Created on: 2013-1-19
 *      Author: heqiu
 */

#ifndef GUUDTHREAD_H_
#define GUUDTHREAD_H_

#include "SDL/SDL.h"

namespace guud {

int Guud_ThreadFunc(void * param);
class GuudThread {
public:
	GuudThread();
	virtual ~GuudThread();
	//线程启动
	void start();
	//线程方法
	virtual void run() = 0;
	//等待结束
	void wait();
private:
	GuudThread(const GuudThread & obj);
	SDL_Thread *m_thread;
	int m_init_flag;
};

}

#endif /* GUUDTHREAD_H_ */
